package com.pactera.madp.cp.api.entity.daily;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * @Description  客群数据日报表
 */
@TableName("cp_work_contact_room_daily")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "客户数据日报表")
public class WorkContactRoomDailyEntity extends BaseEntity<WorkContactRoomDailyEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 企业表ID（cp_crop.id）
     */
    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    @ApiModelProperty(value = "客户变化数")
    private Integer changeContact;

    @ApiModelProperty(value = "客户总数")
    private Integer totalContact;

    @ApiModelProperty(value = "客群变化数")
    private Integer changeRoom;

    @ApiModelProperty(value = "客群总数")
    private Integer totalRoom;

    @ApiModelProperty(value = "客户净增数")
    private Integer RealAddContact;

    @ApiModelProperty(value = "客户表总记录数")
    private Integer recordContact;

    @ApiModelProperty(value = "客户表总记录数")
    private Integer realContact;

    @ApiModelProperty(value = "客户增加数")
    private Integer AddContact;

    @ApiModelProperty(value = "日报类型")
    private Integer dailyType;


    @ApiModelProperty(value = "生成日期")
    private LocalDate createDay;

    public WorkContactRoomDailyEntity() {
    }

    public WorkContactRoomDailyEntity(Integer changeContact, Integer totalContact, Integer changeRoom, Integer totalRoom, Integer realAddContact, Integer recordContact, Integer realContact, Integer addContact) {
        this.changeContact = changeContact;
        this.totalContact = totalContact;
        this.changeRoom = changeRoom;
        this.totalRoom = totalRoom;
        RealAddContact = realAddContact;
        this.recordContact = recordContact;
        this.realContact = realContact;
        AddContact = addContact;
    }
}
